﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="PWS.LogIn"
	x:Name="Window"
	Title="LogIn"
	Width="400" Height="280" AllowsTransparency="True" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" WindowStartupLocation="CenterScreen" WindowStyle="None" Background="{x:Null}">

    <Window.Resources>

        <RadialGradientBrush x:Uid="RadialGradientBrush_1" x:Key="BrushBlackGradient" GradientOrigin="0.377,0.373">
            <RadialGradientBrush.RelativeTransform>
                <TransformGroup x:Uid="TransformGroup_1">
                    <ScaleTransform x:Uid="ScaleTransform_1" CenterX="0.5" CenterY="0.5" ScaleX="1.241" ScaleY="0.79"/>
                    <SkewTransform x:Uid="SkewTransform_1" AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
                    <RotateTransform x:Uid="RotateTransform_1" Angle="0" CenterX="0.5" CenterY="0.5"/>
                    <TranslateTransform x:Uid="TranslateTransform_1" X="-0.502" Y="-0.5"/>
                </TransformGroup>
            </RadialGradientBrush.RelativeTransform>
            <GradientStop x:Uid="GradientStop_1" Color="#FF000000" Offset="1"/>
            <GradientStop x:Uid="GradientStop_2" Color="#FF424242" Offset="0"/>
        </RadialGradientBrush>

        <Style x:Uid="Style_1" x:Key="ButtonFocusVisual">
            <Setter x:Uid="Setter_1" Property="Control.Template">
                <Setter.Value>
                    <ControlTemplate x:Uid="ControlTemplate_1">
                        <Rectangle x:Uid="Rectangle_1" SnapsToDevicePixels="true" Margin="2" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <LinearGradientBrush x:Uid="LinearGradientBrush_1" x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
            <GradientStop x:Uid="GradientStop_3" Color="#F3F3F3" Offset="0"/>
            <GradientStop x:Uid="GradientStop_4" Color="#EBEBEB" Offset="0.5"/>
            <GradientStop x:Uid="GradientStop_5" Color="#DDDDDD" Offset="0.5"/>
            <GradientStop x:Uid="GradientStop_6" Color="#CDCDCD" Offset="1"/>
        </LinearGradientBrush>

        <Style x:Uid="Style_2" x:Key="OkButton" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter x:Uid="Setter_2" Property="Template">
                <Setter.Value>
                    <ControlTemplate x:Uid="ControlTemplate_2" TargetType="{x:Type Button}">
                        <Grid x:Uid="Grid_1">
                            <Rectangle x:Uid="rectangle" x:Name="rectangle" Fill="{DynamicResource RedButtonBackground}" Stroke="{DynamicResource RedButtunStroke}" RadiusX="3" RadiusY="3" Height="Auto"/>
                            <ContentPresenter Margin="6,0,6,0" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger x:Uid="Trigger_1" Property="IsFocused" Value="True"/>
                            <Trigger x:Uid="Trigger_2" Property="IsDefaulted" Value="True"/>
                            <Trigger x:Uid="Trigger_3" Property="IsMouseOver" Value="True">
                                <Setter x:Uid="Setter_3" Property="Fill" TargetName="rectangle" Value="{DynamicResource RedButtonBackgroundMouseOver}"/>
                            </Trigger>
                            <Trigger x:Uid="Trigger_4" Property="IsPressed" Value="True">
                                <Setter x:Uid="Setter_4" Property="Fill" TargetName="rectangle" Value="{DynamicResource RedButtonBackgroundPressed}"/>
                            </Trigger>
                            <Trigger x:Uid="Trigger_5" Property="IsEnabled" Value="False"/>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Uid="Style_3" x:Key="CancelButton" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter x:Uid="Setter_5" Property="Template">
                <Setter.Value>
                    <ControlTemplate x:Uid="ControlTemplate_3" TargetType="{x:Type Button}">
                        <Grid x:Uid="Grid_2">
                            <Rectangle x:Uid="Rectangle_2" Fill="{DynamicResource RedButtonBackground}" Stroke="{DynamicResource RedButtunStroke}" RadiusX="3" RadiusY="3" x:Name="rectangle"/>
                            <ContentPresenter Margin="6,0,6,0" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger x:Uid="Trigger_6" Property="IsFocused" Value="True"/>
                            <Trigger x:Uid="Trigger_7" Property="IsDefaulted" Value="True"/>
                            <Trigger x:Uid="Trigger_8" Property="IsMouseOver" Value="True">
                                <Setter x:Uid="Setter_6" Property="Fill" TargetName="rectangle" Value="{DynamicResource RedButtonBackgroundMouseOver}"/>
                            </Trigger>
                            <Trigger x:Uid="Trigger_9" Property="IsPressed" Value="True">
                                <Setter x:Uid="Setter_7" Property="Fill" TargetName="rectangle" Value="{DynamicResource RedButtonBackgroundPressed}"/>
                            </Trigger>
                            <Trigger x:Uid="Trigger_10" Property="IsEnabled" Value="False"/>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <RadialGradientBrush x:Key="RadialGradientBrush" GradientOrigin="0.377,0.373">
            <RadialGradientBrush.RelativeTransform>
                <TransformGroup>
                    <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.241" ScaleY="0.79"/>
                    <SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
                    <RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
                    <TranslateTransform X="-0.502" Y="-0.5"/>
                </TransformGroup>
            </RadialGradientBrush.RelativeTransform>
            <GradientStop Color="#BF000000" Offset="1"/>
            <GradientStop Color="#AF424242" Offset="0.004"/>
        </RadialGradientBrush>
    </Window.Resources>

    <Window.Effect>
        <DropShadowEffect x:Uid="DropShadowEffect_1" Color="#FF1B1B1B" ShadowDepth="5" BlurRadius="10" />
    </Window.Effect>

    <Grid x:Uid="LayoutRoot" x:Name="LayoutRoot" MouseDown="LayoutRoot_MouseDown" Width="Auto" Height="Auto" Margin="0,0,10,10" Clip="M0,8 C0,3.581722 3.581722,0 8,0 L382,0 C386.41828,0 390,3.581722 390,8 L390,262 C390,266.41828 386.41828,270 382,270 L8,270 C3.581722,270 0,266.41828 0,262 z" Background="#FF000000">
        <Rectangle Stroke="{x:Null}" RadiusX="8" RadiusY="8" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Fill="{DynamicResource RadialGradientBrush}" />
        <Rectangle Stroke="{x:Null}" RadiusX="8" RadiusY="8" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Opacity="0.2" x:Name="TileBackground">
            <Rectangle.Fill>
                <DrawingBrush Viewbox="0,0,29,29" ViewboxUnits="Absolute" TileMode="Tile">
                    <DrawingBrush.Drawing>
                        <DrawingGroup>
                            <GeometryDrawing Brush="#FFFFFFFF">
                                <GeometryDrawing.Geometry>
                                    <RectangleGeometry Rect="0,0,29,29"/>
                                </GeometryDrawing.Geometry>
                            </GeometryDrawing>
                            <DrawingGroup>
                                <DrawingGroup.Transform>
                                    <MatrixTransform Matrix="1,0,0,1,2,1.685"/>
                                </DrawingGroup.Transform>
                                <GeometryDrawing Brush="#FF000000">
                                    <GeometryDrawing.Geometry>
                                        <EllipseGeometry Center="5,5" RadiusX="4.5" RadiusY="4.5"/>
                                    </GeometryDrawing.Geometry>
                                    <GeometryDrawing.Pen>
                                        <Pen Brush="#FF000000" DashCap="Flat" EndLineCap="Flat" LineJoin="Miter" MiterLimit="10" StartLineCap="Flat" Thickness="1"/>
                                    </GeometryDrawing.Pen>
                                </GeometryDrawing>
                            </DrawingGroup>
                            <DrawingGroup>
                                <DrawingGroup.Transform>
                                    <MatrixTransform Matrix="1,0,0,1,17.461,1.685"/>
                                </DrawingGroup.Transform>
                                <GeometryDrawing Brush="#FF000000">
                                    <GeometryDrawing.Geometry>
                                        <EllipseGeometry Center="5,5" RadiusX="5" RadiusY="5"/>
                                    </GeometryDrawing.Geometry>
                                </GeometryDrawing>
                            </DrawingGroup>
                            <DrawingGroup>
                                <DrawingGroup.Transform>
                                    <MatrixTransform Matrix="1,0,0,1,10.181,17"/>
                                </DrawingGroup.Transform>
                                <GeometryDrawing Brush="#FF000000">
                                    <GeometryDrawing.Geometry>
                                        <EllipseGeometry Center="5,5" RadiusX="5" RadiusY="5"/>
                                    </GeometryDrawing.Geometry>
                                </GeometryDrawing>
                            </DrawingGroup>
                            <DrawingGroup>
                                <DrawingGroup.Transform>
                                    <MatrixTransform Matrix="1,0,0,1,24.371,17"/>
                                </DrawingGroup.Transform>
                                <GeometryDrawing Brush="#FF000000">
                                    <GeometryDrawing.Geometry>
                                        <EllipseGeometry Center="5,5" RadiusX="5" RadiusY="5"/>
                                    </GeometryDrawing.Geometry>
                                </GeometryDrawing>
                            </DrawingGroup>
                            <DrawingGroup>
                                <DrawingGroup.Transform>
                                    <MatrixTransform Matrix="1,0,0,1,-5.635,17"/>
                                </DrawingGroup.Transform>
                                <GeometryDrawing Brush="#FF000000">
                                    <GeometryDrawing.Geometry>
                                        <EllipseGeometry Center="5,5" RadiusX="5" RadiusY="5"/>
                                    </GeometryDrawing.Geometry>
                                </GeometryDrawing>
                            </DrawingGroup>
                        </DrawingGroup>
                    </DrawingBrush.Drawing>
                    <DrawingBrush.RelativeTransform>
                        <TransformGroup>
                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="0.025" ScaleY="0.025"/>
                            <SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
                            <RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
                            <TranslateTransform X="-0.488" Y="-0.488"/>
                        </TransformGroup>
                    </DrawingBrush.RelativeTransform>
                </DrawingBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Grid Margin="0,0,0,-10" Background="{x:Null}">
            <Grid.RowDefinitions>
                <RowDefinition x:Uid="RowDefinition_1" Height="100"/>
                <RowDefinition x:Uid="RowDefinition_2" Height="*"/>
            </Grid.RowDefinitions>
            <Grid x:Uid="Header" Grid.Row="0" x:Name="Header"  Background="{x:Null}" Margin="0,0,0,0">

                <!-- LOGO -->
                <Button x:Uid="Button_1" HorizontalAlignment="Left" Margin="20,10,8,8" Style="{DynamicResource LogoButton}" Width="100" Content="Button" Height="80" IsTabStop="False" />

                <!-- CLOSE BUTTON -->
                <Button x:Uid="CloseButton" Background="{DynamicResource BrushBlackGradient}" HorizontalAlignment="Right" Margin="0,-4,-8,0" x:Name="CloseButton" Style="{DynamicResource ButtonClose}" VerticalAlignment="Top" Width="42.194" Height="25" Content="Button" IsTabStop="False" Click="CloseButton_Click" />
                <!-- END CLOSE BUTTON -->
            </Grid>

            <Grid x:Uid="Content" Grid.Row="1" x:Name="Content" Margin="20,0,20,15">
                <Grid x:Uid="FormContentContainer" HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Width="Auto" Height="Auto" x:Name="FormContentContainer">
                    <Rectangle x:Uid="ListBackground" HorizontalAlignment="Stretch" x:Name="ListBackground" Fill="#FFFFFFFF" Stroke="{x:Null}" RadiusX="5" RadiusY="5" Height="Auto" VerticalAlignment="Stretch" Margin="0,0,0,10"/>
                    <Rectangle x:Uid="ContentShadow" x:Name="ContentShadow" VerticalAlignment="Top" Height="10" Stroke="{x:Null}" RadiusX="0" RadiusY="0" Margin="0,-1,0,0">
                        <Rectangle.Fill>
                            <LinearGradientBrush x:Uid="LinearGradientBrush_2" EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop x:Uid="GradientStop_9" Color="#008E8F8F" Offset="0.987"/>
                                <GradientStop x:Uid="GradientStop_10" Color="#FF000000" Offset="0"/>
                            </LinearGradientBrush>
                        </Rectangle.Fill>
                    </Rectangle>

                    <Grid x:Uid="FormContent" VerticalAlignment="Top" Height="Auto" Background="{x:Null}" Margin="8,50,8,0" x:Name="FormContent">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="26"/>
                            <RowDefinition Height="16        "/>
                            <RowDefinition Height="26"/>
                        </Grid.RowDefinitions>
                        <StackPanel Orientation="Horizontal" Grid.Row="0">
                            <Label x:Uid="LoginLabel" Content="Master Password:" Width="105" Margin="16,0,0,0"/>
                            <PasswordBox x:Uid="LoginPasswordBox" x:Name="PasswordTextBox" Width="191" Margin="0" Height="26" />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right">
                            <Button x:Uid="" HorizontalAlignment="Left" Style="{DynamicResource OkButton}" Width="60" Content="Ok" x:Name="OkButton" ToolTip="OK" Margin="0,0,0,0" IsDefault="True" TabIndex="5" Foreground="#FFFFFFFF" Click="OkButton_Click" />
                            <Button x:Uid="CancelButton" HorizontalAlignment="Right" x:Name="CancelButton" Style="{DynamicResource CancelButton}" Width="60" Content="Cancel" IsCancel="True" TabIndex="6" Margin="8,0,0,0" Foreground="#FFFFFFFF" />
                        </StackPanel>
                    </Grid>

                </Grid>
            </Grid>

        </Grid>

    </Grid>

</Window>